Encryption Via Induced Unweighted Errors

ABSTRACT

A method for encrypting data is provided. The method includes formatting data represented in a weighted number system into data blocks. The method also includes converting the data blocks into a residue number system representation. The method further includes generating a first error generating sequence and inducing errors int he data blocks after converting the data blocks into a residue number system representation. It should be understood that the errors are induced in the data blocks by using the first error generating sequence. After inducing errors into the data blocks, the data of the data blocks is formatted into a form to be sorted or transmitted. The method also includes generating a second error generating sequence synchronized with and identical to the first error generating sequence and correcting the errors in the data blocks using an operation which is an arithmetic of a process used in inducing errors.

BACKGROUND OF THE INVENTION

1. Statement of the Technical Field

The invention concerns cryptography. More particularly, the invention concerns a cryptographic system that encodes data by combining an input signal in a residue number system representation with an error generating sequence.

2. Description of the Related Art

There are many methods known in the art for encrypting data prior to the data's transmission over a communications network. One such method involves receiving an input signal at a cryptographic device. The input signal is expressed in a binary number system representation, i.e., characters of the English language are represented by a sequence of bits. Each bit of the sequence has a zero (0) or a one (1) value. The method also involves generating an encryption sequence. The encryption sequence can be a pseudo-random number sequence generated using a highly non-linear method. The method further involves inducing changes in the input signal using the encryption sequence. Such changes mask the input data and are introduced into the input signal by performing an arithmetic operation. These arithmetic operations are typically arithmetic operations in Galois fields. For example, a binary encryption sequence is added to or subtracted from the input signal bit by bit using Galois field GF[2] arithmetic. Alternatively, the binary encryption sequence is multiplied with the input signal using Galois field GF[2] arithmetic. In this regard, it should be appreciated that each of the above listed arithmetic operations results in modifying every bit of the input signal. In effect, the data contained in the input signal is encrypted.

As will be understood by a person skilled in the art, an advantage of such an encryption method is that it provides a high degree of security. Despite such an advantage, this method suffers from certain drawbacks. For example, algorithms typically employed for generating the encryption sequence are computationally intensive. As such, software programs implementing these algorithms have a slow data processing time.

Another such method involves receiving an input signal expressed in a binary number system representation at a cryptographic device. The method also involves generating a cryptographic sequence. The method further involves arithmetically operating on an N bit block of the input signal suing an N bit block of the encryption sequence in Galois filed arithmetic. The encryption is induced in the input signal by performing an arithmetic operation, such as addition, subtraction, or multiplication. As a result of performing the arithmetic operation, the entire block is modified. For example, each character of the English language is represented by an eight (8) bit sequence. A block of eight (8) characters forms a sixty-four (64) bit block. Each bit of the sixty-four (64) bit block has a zero (0)or a one (1)value. As such, the sixty-four (64) bits of each input block sequence are modified by combining the input signal using Galois field arithmetic with a block of the encryption sequence. consequently, the data contained in the input signal is encrypted.

As will be understood by a person skilled in the art, computational complexity can be reduced by reducing the complexity of the encryption sequence generation method. This can be done either by reducing the periodicity of the algorithm or by reducing the amount of non-linearity in the algorithm. As will be understood by a person skilled in the art, an advantage of this encryption method is that it is less computationally intensive than the previously described method. Despite such an advantage, this method suffers from certain drawbacks. For example, this method offers a lower degree of security.

In some encryption applications, a trade off between a degree of security and an encryption algorithm's computational intensity is not justified. Such applications include, but are not limited to, an encryption of medical records and an encryption of credit card records. As such, there is a need for an encryption method offering a moderate degree of security at an appreciably lower implementation complexity than that of a conventional high security encryption method.

SUMMARY OF THE INVENTION

A method is provided for encrypting data. The method is based on the difficulty in mapping error statistics between errors induced in residues and the corresponding errors resulting when residue number systems are mapped into a weighted number system. This difficult error mapping masks the characteristics of the method used to induce errors and thus encrypts the input data. The inverse operation is performed to decrypt the encrypted information. The masking of the error inducing or encrypting sequence allows the use of a less complex and thus less computationally intensive sequence generation while yielding an acceptable level of security.

The method includes formatting data represented in a weighted number system into two or more data blocks of N bits in length. The method also includes converting the data in the data blocks into a residue number system representation. The method further includes generating a first error generating sequence, such as a simple linear sequence, a pseudo-random number sequence, a chaotic sequence, or a complex non-linear sequence. Thereafter, the method includes inducing errors in the data blocks by using the error generating sequence to arithmetically operate on one or more residues using Galois arithmetic. In this regard, it should be understood that the errors are inducted in the data blocks after converting the data into the residue number system representation.

According to an aspect of the invention, the method includes introducing known errors in one or more residue values generated in the residue number system. The method also includes performing an arithmetic operation on the residue values based on the first error generating sequence. The method further includes transforming the data blocks to a weighted number system. In this regard, it should be understood that this transformation is performed after errors are inducted in the data blocks.

According to another aspect of the invention, the method includes generating the first error generating sequence in a weighted number system or a residue number system. The method also includes inducing errors in only selected residues. If should be appreciated that the residues may be varied over time. The method further includes formatting the data into a weighted form to be stored or transmitted after inducing errors in the data blocks.

According to yet another aspect of the invention, the method includes receiving the data blocks after inducing errors int he data blocks. The method also includes generating a second error generating sequence synchronized with and identical to the first error generating sequence. The method further includes correcting the errors in the data blocks using an operation which is an arithmetic inverse of a process used in inducing errors in the data blocks. The method includes converting the data blocks from the residue number system to the weighted number system after correcting the errors in the data blocks. The weighted number system is selected from a group consisting of a decimal, a binary, an octal and a hexadecimal number system.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments will be described with reference to the following drawing figures, in which like numerals represent like items throughout the figures, and in which:

FIG. 1 is a block diagram of a cryptographic system having an encryption engine and a decryption engine that is useful in understanding the invention.

FIG. 2 is a flow diagram of a method for encrypting and decrypting data that is useful for understanding the invention.

FIG. 3 is a graph showing an autocorrelation of an input sequence that is useful for understanding the invention.

FIG. 4 is a graph showing an autocorrelation of an encrypted sequence that is useful for understanding the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring now to FIG. 1, there is provided a block diagram of a cryptographic system 100 that is useful in understanding the invention. The system 100 is comprised of an encryption engine 150 and a decryption engine 160. As shown in FIG. 1, the encryption engine 150 is comprised of a data block formatter 102, a residue number system (RNS) encoder 104, a closed-ring-arithmetic operator 106, and a data formatter 108. The encryption engine 150 is also comprised of a numerical sequence generator 110 and a state synchronizer 112.

The data block formatter 102 is comprised of hardware and software configured to receive an input signal including bits of information expressed in a weighted number system representation. The phrase “weighted number system” as used herein refers to a number system other than a residue number system. Such number systems include, but ar not limited to, a decimal number system, a binary number system, an octal number system, and a hexadecimal number system. The data block formatter 102 is also comprised of hardware and software configured to arrange the bits of information into a plurality of data blocks.

According to an aspect of the invention, each data block represents one or more characters of the English language. According to another aspect of the invention, the data blocks contain a number of bits defined in accordance with a particular system 100 application. In this regard, it should be appreciated that each data block may contain a fixed number of bits. Alternatively, each data block may contain a variable number of bits, ranging from a minimum size to a maximum size. In this regard, it should be understood that the number of bits contained each data block may be varied in a deterministic manner that is known by the decryption engine 160 but has random or pseudo-random characteristics.

Referring again to FIG. 1, the data block formatter 102 is further comprised of hardware and software configured to communicate data blocks to the RNS encoder 104. The RNS encoder 104 is comprised of hardware and software configured to receive data blocks from the data block formatter 102. The RNS encoder 104 is also comprised of hardware and software configured to convert the data in the data blocks into a residue number system (RNS) representation via modulo operations. In this regard, it should be understood that the conversion of data into a RNS representation can be done on a character by character basis, i.e. in a data block by data block manner. It should also be understood that modulo operations can be performed in parallel to d

According to an embodiment of the invention, binary-to-residue conversion operations are computed. In such a scenario, it is preferable to implement moduli equal to or near a power to two (2). For example, if the RNS encoder 104 is required to employ a relatively simple binary to RNS conversion method, then the moduli used by the RNS encoder 104 can be advantageously selected as 2^(N), 2^(N)−1, and 2^(N)+1. As should be understood, such moduli are preferable because they are guaranteed to be relatively prime and have the lowest possible implementation complexity. Still, the invention is not limited in this regard.

Examples of binary-to-residue circuits of moduli 2^(N), 2^(N)−1, and 2^(N)+1 are disclosed in “Modulo-Free Architecture for Binary to Residue Transformation with respect to {2m−1, 2m+1} Moduli Set, 1994,” written by F. Pourbigharaz, H. M. Yassine. The entire disclosure of this publication is incorporated herein by reference.

The following Example (1) is provided to assist a reader in understanding a computed modulo operation for converting binary data into a RNS representation. However, the scope of the invention is not limited in any way thereby.

EXAMPLE 1

A first data block is comprised of a binary bit sequence 00001001 representing a horizontal tab, the tenth character of the ASCII character set. As will be understood by a person skilled in the art, the binary bit sequence 00001001 has a decimal value of nine (9). As the Extended ASCII character set has 256 possible values with decimal values from zero (0) to two hundred fifty-five (255) and corresponding binary values from 00000000 to 11111111, the moduli set must supply a dynamic range M=m₀, m₁, . . . m_(P-1). P is the number of moduli of at least two hundred fifty-five (255). Three (3) moduli m₀, m₁, m₂ are selected to have values of seven (7), eight (8), and nine (9). This gives a dynamic range of five hundred four (504). Accordingly, the RNS representation of the data in the first block can be computed using Equation (1).

R={V_(bbs) modulo m₀, V_(bbs) modulo m₁, V_(bbs) modulo m₂}   (1)

where R is a residue value 3-tuple for the data in a data block. V_(bbs) is a value of a binary bit sequence representing a character of the English language, m₀, m₁, m₂ are the moduli. By substituting the above-listed values for V_(bbs) and m₀, m₁, m₂ into Equation (1), the residue values for the data in the first data block can be computed as follows: R={9 modulo 7=2, 9 modulo 8=1, 9 modulo 9=0} having a binary bit sequence of {010 001 000}.

According to another embodiment of the invention, binary-to-residue conversion operations are advantageously implemented in look-up table operations. This embodiment is especially for block sizes of ten (10) bits or less due to the manageable look-up table address space. In such a scenario, the RNS encoder 104 has relatively fast processing time as compared to that of a RNS encoder employing a computational binary to RNS conversion algorithm. Still, the invention is not limited in this regard. Any other binary-to-residue conversion technique known in the art can be used without limitation.

Referring again to FIG. 1, the RNS encoder 104 is also comprised of hardware and software configured to communicate residue values expressed in a binary number system representation to the closed-ring-arithmetic operator 106. The closed-ring-arithmetic operator 106 is comprised of hardware and software configured to receive residue values from the RNS encoder 104. As shown in FIG. 1, the closed-ring-arithmetic operator 106 is coupled to the numerical sequence generator 110. The numerical sequence generator 110 is comprised of hardware and software configured to generate an error generating sequence. The phrase “error generating sequence” as used herein refers to a sequence of serially linked numbers expressed in a binary number representation, i.e. a sequence of serially linked bit segments having n bits of a zero value (0) or a one (1) value. In this regard, it should be appreciated that the numerical sequence generator 110 is coupled to the state synchronizer 112. State synchronizers are well known to persons skilled in the art. Thus, the state synchronizer 112 will not be described in great detail herein. However, it should be appreciated that the stat synchronizer 112 is comprised of hardware and software configured to accept a “key.” As should be appreciated, the key is provided for enabling the generation of the identical of error generating sequence at the receiver for decrypting the message. The “key” is also provided for enabling the induction of errors in selected residues.

Referring again to FIG. 1, the state synchronizer 112 configured to communicate the “key” to the numerical sequence generator 110. Numerical sequence generators are well known to persons skilled in the art. Thus, the numerical sequence generator 110 will not be described in great detail herein. However, it should be appreciated that the numerical sequence generator 110 performs actions to generate an error generating sequence with an initial stat defined in a received “key.” Such error generating sequence types include, but are not limited to, a numerical sequence in a weighted number system representation or a numerical sequence in a residue number system representation. As will be understood by a person skilled in the art, the type of error generating sequence can be defined by a complexity and robustness of the system 100. In this regard, it should be appreciated that the error generating sequence can be selected as a simple pseudo random number sequence, a chaotic sequence, or a complex nonlinear sequence.

Referring again to FIG. 1, the numerical sequence generator 110 is also comprised of hardware and software configured to communicate an error generating sequence to the closed-ring-arithmetic operator 106. Upon receipt of one or more residue values from the RNS encoder 104 and an error generating sequence from the numerical sequence generator 110, the closed-ring-arithmetic operator 106 performs actions to induce errors in at least one of the residue values by using the error generating sequence. In this regard, it should be appreciated that the closed-ring-arithmetic operator 106 induces errors in residue values by performing an arithmetic operation, such as a Galois field addition, a Galois field subtraction, a Galois field multiplication, a Galois extension field multiplication, or a related operation on a subset of Galois sub-fields. For example, the closed-ring-arithmetic operator 106 performs actions to add in Galois field GF[m_(L)] all or a portion of the error generating sequence to residue values thereby inducing errors in the residue values.

According to an aspect of the invention, each residue value is expressed in a binary number system representation. Specifically, each residue is a number expressed as a sequence of bits. Each bit of the sequence has a zero (0) value or a one (1) value. In this regard, it should be appreciated that the arithmetic operation performed by the closed-ring-arithmetic operator 106 modifies one or more bits of each residue value or selected residue values in Galois field GF[m_(L)]. It should also be appreciated that the selected residue values in which errors are inducted may be varied over time.

After inducing errors in one or more residue values, the closed-ring-arithmetic operator 106 communicates non-error induced residue values (NEIRVs) and/or error induced residue values (EIRVs) to the data formatter 108. The phrase “non-error induced residue value” as used herein refers to a residue value absent of induced errors, i.e., none of the residue value bits were modified by an arithmetic operation performed by the closed-ring-arithmetic operator 106. In this regard, it should be appreciated that the arithmetic operation performed by the closed-ring-arithmetic operator 106 can modify one or more bits selected residue values. Accordingly, the closed-ring-arithmetic operator 106 may communicate residue values (i.e., NEIRVs) other than the selected residue values having inducted errors (i.e., EIRVs) to the data formatter 108. The phrase “error induced residue value” as used herein refers to a numerical value representing the sum of a residue value and all or a portion of an error generating sequence, the result of subtracting all or a portion of an error generating sequence from a residue value, or the product of a residue value and all or a portion of an error generating sequence, i.e., one or more bits of the residue value was modified by an arithmetic operation performed by the closed-ring-arithmetic operator 106.

The data formatter 108 is comprised of hardware and software configured to convert the NEIRVs and the EIRVs into a proper form for transmission to a data store 114 and/or the decryption engine 160. For example, the data formatter 108 can perform actions to interleave the NEIRVs and the EIRVs. Subsequent to the formatting step, the NEIRVs and the EIRVs are stored or transmitted to some remote location. For example, the NEIRVs and the EIRVs can be transmitted to the data store 114 and/or the decryption engine 160. The data formatter 108 can also perform actions to convert the NEIRVs and the EIRVs to a weighted number system representation prior to formatting the same for transmission to the data store 114 and/or the decryption engine 160. In this regard, it should be appreciated that the data formatter 108 can employ a Chinese Remainder Theorem (CRT) algorithm, a modified CRT algorithm, a mixed-radix conversion (MRC) algorithm, or a modified MRC algorithm to convert the NEIRVs and the EIRVs into a weighted number system representation prior to formatting and transmission to the data store 114 and/or the decryption engine 160.

As shown in FIG. 1, the decryption engine 160 is comprised of an inverse data formatter 116, a closed-ring-arithmetic operator 118, and a Chinese Remainder Theorem (CRT) processor 124. The decryption engine 160 is also comprised of a numerical sequence generator 120 and a state synchronizer 122. The inverse data formatter 116 is comprised of hardware and software configured to convert a received signal including interleaved data (i.e., NEIRVs and EIRVs) into a form suitable for communication to the closed-ring-arithmetic operator 118. The inverse data formatter 116 can extract the data that has been interleaved and perform any other actions necessary to extract NEIRVs and EIRVs from a formatted signal communicated from the data formatter 108. If the NEIRVs and the EIRVs are converted to a weighted number system prior to transmission by the data formatter 108, then the inverse data formatter 166 can also perform actions to convert the same into an unweighted number system representation. The phrase “unweighted number system” as used herein refers to the residue number system.

Referring again to FIG. 1, the state synchronizer 122 performs actions to synchronize at least one state of the numerical sequence generator 120 with at least one state of the numerical sequence generator 110. In this regard, it should be appreciated that the state synchronizer 122 generates a “key” and communicates the same to the numerical sequence generator 120. The “key” is provided for enabling the generation of the same error generating sequence employed by the encryption engine 150. Upon receipt of the “key,” the numerical sequence generator 120 performs actions to generate the same error generating sequence generated by the numerical sequence generator 120 performs actions to communicate the error generating sequence to the closed-ring-arithmetic operator 118.

Upon receipt of NEIRVs and EIRVs from the inverse data formatter 116 and the error generating sequence from the numerical sequence generator 120, the closed-ring-arithmetic operator 118 performs actions to remove the error previously induced in the EIRVs by the closed-ring-arithmetic operator 106. In this regard, the closed-ring-arithmetic operator 118 inverts the arithmetic operations performed by the closed-ring-arithmetic operator 106 of the encryption engine 150. Once the errors are removed from the EIRVs, the error free residue values (including any NEIRVs) are communicated from the closed-ring-arithmetic operator 118 to the CRT processor 124. The CRT processor 124 performs arithmetic operations and/or look up table operations to obtain an output data from the error free residue values. In this regard, it should be appreciated that the CRT processor 124 is comprised of hardware and software configured to recover sequences of binary bits representing characters of the English language from the error free residue values by employing a Chinese remainder theorem (CRT) algorithm. CRT algorithms are well known to persons skilled in the art. Thus, CRT algorithms will not be described in great detail herein. However, it should be appreciated that any CRT algorithm can be used without limitation. It should also be appreciated that the output data is comprised of substantially the same sequence of binary bits contained int he input signal received at the encryption engine 150.

Referring now to FIG. 2, there is provided a flow diagram of a method 200 for encrypting and decrypting data that is useful for understanding the invention. As shown in FIG. 2, the method 200 begins at step 202 and continues with step 204. In step 204, an input data expressed in a weighted number system representation is received at an encryption engine 150. After step 204, step 206 is performed where the input data is processed to form two or more data blocks. In this regard, it should be appreciated that the data blocks may contain a fixed number of bits or a variable number of bits ranging from a minimum size to a maximum size. Subsequently, the method 200 continues with step 208. In step 208, data in the data blocks is converted into a residue number system representation via modulo operations. Modulo operations are well known to persons skilled in the art. Thus, modulo operations will not be described in great detail herein. However, it should be appreciated that modulo operations are selected in accordance with a particular method 200 application.

Referring again to FIG. 2, the method 200 continues with step 210. In step 210, a “key” is generated for enabling a generating of a particular type of error generating sequence. In step 212, the “key” is communicated to a numerical sequence generator 110. Upon receipt of the “key,” the numerical sequence generator 110 generates an error generating sequence of a type defined in and synchronized by the “key.” Such types of error generating sequences include, but are not limited to, a numerical sequence expressed in weighted number system representation or a numerical sequence expressed in a residue number system representation. In step 216, a closed-ring arithmetic operation is performed on the residue values generated in a residue number system using the error generating sequence. The closed-ring-arithmetic operation can be a Galois field addition, a Galois field subtraction, or a Galois field multiplication. For example, all or a portion of the error generating sequence is added to the residue values thereby inducing errors in the residue values. Thereafter, the error induced residue values (EIRVs) are processed to format the same for storage or transmission in step 218. Such formatting can include converting the EIRVs and NEIRVs to a weighted number system. Such formatting can also include interleaving the EIRVs and NEIRVs. Such formatting can further include any other formatting steps to prepare the same for storage or transmission. In step 220, the formatted encrypted data are communicated to a data store 114 and/or a decryption engine 160 with or without conversion to a weighted number system representation. Subsequently, the method 200 continues with step 222 of FIG. 2B.

In step 222, a decryption engine 160 receives the formatted encrypted data. Upon receipt of the formatted encrypted data, the decryption engine 160 performs processing on the same. This processing can involve deformatting the formatted encrypted data so that the EIRVs and NEIRVs are in a proper form for communication to a closed-ring-arithmetic operator 118. This step can involve de-interleaving the EIRVs and NEIRVs from an interleaved sequence. This step can also involve converting the EIRVs and NEIRVs to an unweighted number system. After step 224, step 226 is performed where at least one state of a numerical sequence generator 120 contained in the decryption engine 160 and at least one state of a numerical sequence generator 110 contained in an encryption engine 160 are synchronized. In step 228, an error generating sequence is generated by the numerical sequence generator 120. In this regard, it should be appreciated that the error generating sequence is the same as the error generating sequence generated by the encryption engine 150. It should also be appreciated that the error generating sequence is generated in a weighted number system or a residue number system. Subsequently, a closed-ring-operation is performed to remove the error induced int he EIRVs to obtain error free residue values. In step 232, Chinese remainder theorem (CRT) operations and/or CRT look-up table operations are performed to obtain output from the error free residue values. In this regard, it should be appreciated that the output data is comprised of the same or substantially the same sequence of binary bits contained in the input data. After step 232, step 234 is performed where the method 200 ends.

The following Example (2) is provided in order to illustrate a principle of the present invention. MATLAB® software is used to illustrate the principle of the present invention. The scope of the invention, however, is not to be considered limited in any way thereby.

EXAMPLE 2

Briefly, an input data “the quick brown fox” is generated and converted into a residue number system representation using modulo operations. The residue number system employed is selected to have moduli three (3), five (5), and nineteen (19). Thereafter, a manipulation in residue space is performed by simply flipping the least significant bit (LSB) in the mod three (3) moduli illustrating the principle that a very predictable manipulation of the same bit in residue space

% % Define primes % p(1) = 3; p(2) = 5; p(1) = 19; % % Calculate M % capm = prod(p); % % Define b's % b(1) = 2; b(2) = 3; b(3) = 14; % % Define M/p's % mop(1) = 5*19; mop(2) = 3*19; mop(3) = 3*5; % % Define input string % str =’The quick brown fox’: seq = uint8(str); intct = length(seq); % %Begin conversion into residue space % resarr = zeros(3,intct); for ind = 1:intct  for ind1 = 1:3   resarr(ind1,ind) = mod(seq(ind),p(ind1));  end end % % Insert encryption fcn here. % for ind = 1:intct  bv = dec2bin(resarr(1,ind),2);  if bv(1) == ‘0’   bv(1) = ‘1’;  else   bv(1) = ‘0’  end  resarr(1, ind) = bin2dec(bv); end % % Convert back to weighted % outarr = zeros(1,intct); for int = 1:intct  outarr(int) = mod(resarr(1,int)*b(1)*mop(1) + ...   resarr(2,int)*b(2)*mop(2) +resarr(3,int)*b(3)*mop(3),capm); end outarr = uint8(outarr); eout = char(outarr); eout % % Now decript % seq = uint8(eout); intct = length(seq); % %Begin conversion into residue space % resarr = zeros(3,intct); for ind = 1:intct  for ind1 = 1:3   resarr(ind1,ind) = mod(seq(ind),p(ind1));  end end % % insert dencryption fcn here. % for ind = 1:intct  bv = dec2bin(resarr(1,ind),2);  if bv(1) == ‘0’   bv(1) = ‘1’;  else   bv(1) = ‘0’;  end  resarr(1,ind) = bin2dec(bv); end % % Convert back to weighted % outarr = zeros(1,intct); for int = 1:intct  outarr(int) = mod(resarr(1,int)*b(1)*mop(1) + ...   resarr(2,int)*b(2)*mop(2) +resarr(3,int)*b(3)*mop(3),capm); end outarr = uint8(outarr); eout = char(outarr); eout

The following Example (3) is provided in order to further illustrate the mathematical aspects of the present invention. The scope of the invention, however, is not to be considered limited in any way thereby.

EXAMPLE 3

Briefly, an input data is generated and converted into a residue number system representation using modulo operations. The input data includes:

“In classical physics, due to interference, light is observed to take the stationary path between two points; but how does light know where it's going? That is, if the start and end points are known, the path that will take the shortest time can be calculated. However, when light is first emitted, the end point is not known, so how is it that light always takes the quickest path? In some interpretations, it is suggested that according to QED light does not have to—it simply goes over Physically, QED describes charged particles (and their antiparticles) interacting with each other by the exchange of photons. The magnitude of these interactions can be computed using perturbation theory; these rather complex formulas have a remarkable pictorial representation as Feynman diagrams. QED was the theory to which Feynman diagrams were first applied. These diagrams were invented on the basis of Lagrangian mechanics. Using a Feynman diagram, one decides every possible path between the start a QED doesn't predict what will happen in an experiment, but it can predict the probability of what will happen in an experiment, which is how it is experimentally verified. Predictions of QED agree with experiments to an extremely high degree of accuracy: currently about 10̂-12 (and limited by experimental errors); for details see precision test of QED. This makes QED the most accurate physical theory constructed thus far. Near the end of his life, Richard P. Feynman gave a series of lectures on QED intended for the lay public. These lectures were transcribed and published as Feynman (1985), QED: The strange theory of light and matter, a classic non-mathematical exposition of QED from the point of view articulated above.”

The residue number system employed is selected to have moduli two (2), seven (7), and seventeen (17). Thereafter, a manipulation in residue space is performed by simply flipping the least significant bit (LSB) in the mod two (2) moduli.

For simplicity of illustration, a simple normally distributed random variable is generated with the number of samples equal to the number of eight (8) bit blocks representing the input data. In other embodiments a more complex method of generating the error sequence is used. The first three (3) fractional bits of each random number is restricted to value from zero (0) to size (6) and are added in Galois field GF[7] to the mod seven (7) moduli. The next 5 (5) fractional bits from the random sample is limited to values from zero (0) to sixteen (16) and are added in Galois field GF[17] to the mod seventeen (17) moduli. The result is reformatted via the Chinese Remainder Theorem (CRT) to a weighted eight (8) bit character representation.

The simple operations in residue space generate output the characters:

Ø□ul^(a)å□4-□å½+Ui□{hacek over (A)}□□\Coo, *éS&[P□□\}Ñ8□<xV¶ x{acute over ( )}□□□Y□□,’*□Q□4

□}□.□ hæĺáODS□ç{hacek over (A)}□

V□

#Nså{umlaut over (Å)}□□³c

{grave over (å)}□ L□y[□è□G({umlaut over (Å)}#xÜ{circumflex over ( )}□{circumflex over ( )}□é□{ço□8u N□È□ □åÙ}6□O^(o)Ús

ÓØ~ ~□¶)åØÙ\□$□□□/□□□

[b”)□B

c±□åzu□A□□

x

□□uQç]Àl

 {dot over (Y)}4□@l□□2+å

□□□□ □¶  9Ò□3M}Ë{hacek over (e)})□~

KÜ/UÁ:J#51*C

s¢åG{circumflex over ( )}□Ñ#CntÉ?□□□□e,X

N

□T{dot over (Y)}□u□□□β□¾Ap □ÜQ□□}tM□A¢

□-/□□w□¶{ØE□D<{tilde over (e)}uS6#

/□□$

□ ã{dot over (Y)}¹&åËx<□äË{dot over (Y)}Ü[□□W&.E□βz²Û-f□}-FgPç/+āZ

ll

(i;□□=ÜpÄ4□å□Ü~□o

{hacek over (O)}”.jn${grave over ( )}@ Rå83H□OÒ§□ç□□J

,ádçip;□§Ü□hÀS¼μ]

GËDic

¾¢J>□©Dmy7m{dot over (U)}{dot over (Y)}β□□êXãË□i□5è àfd”QÕKRFç□/□□Ä0□76

{ Ù{circumflex over ( )}am□□ S□/l”p sw□□\8lhå

Ë\_+®#@□Zx□@p&P_u□T+Zq

□=

□5§M52ÁÚ□□È′ëÒ□□□¼Ñ x{grave over ( )}=³f

Ã²□\{umlaut over (N)}¼□□i$□^(o)i□è□zÙ□:□□%

□)

)¶^(a)= “Aá□□p□{æ

Êx6t,§Û□^(o)TÉ□□dl[  1#

□@{dot over (Y)}L%³L□

□Å□q{circumflex over ( )}?f1□\□□J □lf<□ÖKlx□□lx''')ĖYN/¶oj□ÅÖ□ÄjK□□□jWÀ3i

□{J□□~Ë□4□

ÕtÉ□□ÚØCt7Y#

ÅZá M2Å½f°□ij□□ZÝ

}YiM|□

®-□[ ]□v{©&6□□Ú~°□qÜÀ!Ö□y□

-Ú□Û%bE

A °\ÒrÕ9@Ñ”{umlaut over (N)}Å□il

β¥□M{dot over (U)}ÑÓ6

□oi□□□iÙ□U□lf□M2 ?

□-a□2

Á‘ >{circumflex over ( )}3°²Å

ËØÅ□p□

□□#r□□P□4□Y

@yàÙO□□°

Ou□

FÉ□

□Å¹G&z  

- □¢DkE¾ÝGçt

£,{Å}1□μ,{acute over ( )}u·□ÅÛβ¾Úx kμ□~]

m□:□[®5NÈ□□ xå□Câ□□□□&□ÅÜ□M£X □B0gS0□□Ė□Oc-,¢{circumflex over ( )}Öj

6Ė□□□j□mÖVÜ=□□ å2EÅh]□}ÅG@2³□□Ei4åZuβH□x(~F)¾kå□%Ė|)

□·\□□□xå$~□

□E□¶□)©Ö□xÓ□□

¥ yHs□¦E ĖxuÅ□□Ø

u

%½b;æèĖaĖ  

□à□□  Cl□r□X+PÅ=pã|

|N□i|nä□ÙGĖ□¼V K ½<□*□□Jg¶q□□!Spo3

={dot over (U)}&ÕU{□|Ô=Ü □□□<®

3C″ac□ä7Bf

□°□q1äëT□□°{acute over ( )}□Ë Ù □

βÁ¶□□#ä□;YL{i0°lh½

h□=□□lS”ÅÀã©Ü□

JÃ{dot over (Y)}®

c[ÊádBË□x□□Ê{dot over (Y)}-□□□7□* 9zv&‘a[Ã*?□□

□a²□-8/Öê □#ëÖ□- □

□wl¾;ËTÜh   ³J1Oβ

□EJ□□□x□x,L§□QéZ□¾ gÔ□àn□.\

N]äc©Ö□x’yβ□£Yo= □□*$4Ö7@□©A* u it□~#ÊTĖDi□3

hÅ5□□□êç’):1·lèkÔÒ%{dot over (a)}i8□l□jxi{dot over (a)}i©À□ÁäÒIs□

?F □lĖ{dot over (Y)}m~ál□c□Ėx?°□

%ėt□V²æG7□

°5□C~}m□{dot over (O)}□□β6β□[=fH9

□□□

$|À {□Ca  ĖL=l□0x□l□□½Z□æ^(a)□□|□

Ò5Vs□ÅYÃã□¼

n□Ô§□□Ò©ÅTÁ□&=□{dot over (a)}□ □©^(a)c/iÙË&cÄ&m□j)  ({dot over (O)}Wçx□□±□l□ y.;□

#□®9 Rw□{dot over (U)}è¶fctxÅÚij{dot over (Y)}66+w l□Yp□]l?°%§*1{dot over (a)}{dot over (Y)}],À□B

K”□

âl=VayB9A

f□□G□  β□6”O&ÁĖ□5M{dot over (O)}8

□ncĖn□i*½s q£ã>□□%.¾SÚ□3□l.CBBMė{□ÁmMÒ 4ãÖ°á}?{dot over (O)}Å□ĖJq,□□

ojlØ\C□@□‘~” □&)□

zR□□Ò&ÅÂ

Ôv¶g□¾□ f□Å□Ü□{grave over ( )}z□Ë©| □&)+z2v□Ė$□~□d□Jè|□□□e,□+□□ÖiKÄ©Å<ÚqÈ□+

4äÈm-”□’gxj□A

Û1|#f=  ÒN} Ù□□Å7□□, °□Ê□□i{circumflex over ( )}S□q□”Ä2.2jéu□X{È□□|AN□US< à2\RSm□,Ò¼+iq[å7fÛÚB□□x±.§□Å6□Ė#¥{circumflex over ( )}7}|çj□|{dot over (Y)}□□sÀ/AZ□□Èèmmj·lC*1 n²å  {dot over (O)}Û

□:ÊÛ

Eç*CÓË ’uP□¶=nY°·Y□ebk’ėèÓÛ□□°□□\μβJ□□Ú£y□□g

□6 æ[i-(z¹f□_i,□Û□i8□ □+

R□ægÙ0C□>l-  lMaà□©JĀ¾åå

‘S1_é□□”<a□PuL□°çKdêMI ~□□É□r{dot over (Y)}iβ$q±□ÁVØ□S5H Nμ$^(a)□7□□éq~□□ □□

W

’−+g□□IÖ0)□ N”n,B,□^(a)å{grave over ( )}Y=,~ 34□wsÖ□Pq6hå  □M□Ö□□/MHg¥I□{circumflex over ( )}Øi□ÀqCÈJ·

□xLe,ä6±I□q□tÁY□l

R

©□ã53□ □*Ü+L□ê□L□}

z&äz(x)MEfZWÒ□,O={dot over (U)}$A□/³□ “E@8,□

;|□□äÕ□Ö□ØÈD)§x□]□

Hk{circumflex over ( )}j=KnÄÓB [O□¶&3 □¶ÈÉ□□Ë

Û□□j−3L{hacek over (O)}[{j□|Ô

□b®kGçwzÓ~ÉYm□9ÓË□*□=DaTé·g□X′Ä

3c #o!$¦□□V]={dot over (O)}□[L□*□¢@3~□□¢□²‘4’©\e~Äw4Ũ□v□□?~~Ã□çβ|Y□k□ j□Å~□Ė□□g□Ö#’R

□åi±²RÖ□=□P□□ □å6Ė

°Á□□”kz2ĖÚÅ*□m¶iå·ijÛ~”‘{dot over (Y)}□Å

¼□c□*ëÔpE{umlaut over (N)}qĖ^(a)1nO~2,E□x{

□□ □□ □

ĖÕ□ å EVÑ‘□

Ë[J© É□® G|{□wBÝ{hacek over (O)}xÒhäÔ−Å□{dot over (U)}ç□″□‘j,□^(a)g□²

¥~4xuV~□Å¶*□=□gçV ½□q7zæ%

e

□□*$Ù□□Vx9i0âF□□¥y äà=4ËJ□©”g0□rβ.

In the decryption engine, the characters are converted back to a residue number system representation. A manipulation in residue space is performed by flipping an LSB in the mod two (2) moduli. The seed used to generate the random number sequence in the encryption is used as the key and seed for the random number generator in the decryption engine. The first three (3) fractional bits of each random number is restricted to value from zero (0) to six (6) and are subtracted in Galois field GF[7] to the mod seven (7) moduli. The next five (5) fractional bits form the random sample is limited to values from zero (0) to (16) and are subtracted in Galois field GF[17] to the mod seventeen (17) moduli. The result is converted back to character format via the Chinese Remainder Theorem (CRT). Consequently, an output data is generated which corresponds to the original input data.

For purpose pf understanding the invention, the following example is provided of a MATLAB® software routine for residue encryption and decryption. Those skilled in the art will appreciate that the invention is not limited to the routine provided.

% % MATLAB example routine for Residue encryption % % Written by: David B. Chester % Harris Corporation % % 4/9/2007 % % Define primes % p(1) = 2; p(2) = 7; p(3) = 17; % % Calculate M % capm = prod(p); % % Define b's % b(1) = 1; b(2) = 6; b(3) = 11; % % Define M/p's % mop(1) = 7*17; mop(2) = 2*17; mop(3) = 2*7; % % Define input string to be encrypted and then decrypted % str = [‘In classical physics, due to interference, light is observed to’...  ,char(13),...  ‘take the stationary path between two points; but how does light’...  ,char(13),...  ‘know where it's going? That is, if the start and end points are’...  ,char(13),...  ‘known, the path that will take the shortest time can be’...  ,char(13),...  ‘calculated. However, when light is first emitted, the end point’...  ,char(13),...  ‘is not known, so how is it that light always takes the quickest’...  ,char(13),...  ‘path? In some interpretations, it is suggested that according to’...  ,char(13),...  ‘QED light does not have to -- it simply goes over every possible’...  ,char(13),...  ‘path, and the observer (at a particular location) simply detects‘...  ,char(13),...  ‘the mathematical result of all wave functions added up (as a sum’...  ,char(13),...  ‘of all line integrals). For other interpretations, paths are’...  ,char(13),...  ‘viewed as non physical, mathematical constructs that are’...  ,char(13),...  ‘equivalent to other, possibly infinite, sets of mathematical’...  ,char(13),...  ‘expansions. According to QED, light can go slower or faster than’...  ,char(13),...  ‘c, but will travel at speed c on average’...  ,char(13),...  char(13),...  ‘Physically, QED describes charged particles (and their’...  ,char(13),...  ‘antiparticles) interacting with each other by the exchange of’...  ,char(13),...  ‘photons. The magnitude of these interactions can be computed’...  ,char(13),...  ‘using perturbation theory; these rather complex formulas have’...  ,char(13),...  ‘a remarkable pictorial representation as Feynman diagrams. QED’...  ,char(13),...  ‘was the theory to which Feynman diagrams were first applied.’...  ,char(13),...  ‘These diagrams were invented on the basis of Lagrangian’...  ,char(13),...  ‘mechanics. Using a Feynman diagram, one decides every possible’...  ,char(13),...  ‘path between the start and end points. Each path is assigned a’...  ,char(13),...  ‘complex-valued probability amplitude, and the actual amplitude’...  ,char(13),...  ‘we observe is the sum of all amplitudes over all possible’...  ,char(13),...  ‘paths. Obviously, among all possible paths the ones with’...  ,char(13),...  ‘stationary phase contribute most (due to lack of destructive’...  ,char(13),...  ‘interference with some neighboring counter-phase paths) - this’...  ,char(13),...  ‘results in the stationary classical path between the two’...  ,char(13),...  ‘points.’...  ,char(13),...  char(13),...  ‘QED doesn't predict what will happen in an experiment, but it’...  ,char(13),...  ‘can predict the probability of what will happen in an experiment,’...  ,char(13),...  ‘which is how it is experimentally verified. Predictions of QED’...  ,char(13),...  ‘agree with experiments to an extremely high degree of’...  ,char(13),...  ‘accuracy; currently about 10{circumflex over ( )}-12 (and limited by experimental’...  ,char(13),...  ‘errors); for details see precision tests of QED. This makes QED’...  ,char(13),...  ‘the most accurate physical theory constructed thus far.’...  ,char(13),...  char(13),...  ‘Near the end of his life, Richard P. Feynman gave a series of’...  ,char(13),...  ‘lectures on QED intended for the lay public. These lectures’...  ,char(13),...  ‘were transcribed and published as Feynman (1985), QED; The’...  ,char(13),...  ‘strange theory of light and matter, a classic non-mathematical’...  ,char(13),...  ‘exposition of QED from the point of view articulated above,’]; seq = uint8(str); % % Calculate the character length of the sequence intct = length(seq); % % Read the current random number generator state and store it as the % encryption key key = randn(‘state’); % % Generate a random sequence for encryption % In this example, a simple normally distributed random number is used normseq = randn(1,intct); % % Convert each floating point random number to a log2(p(2)) bit % and a log2(p(3) bit representation % % Positives only normseq = abs(normseq); % % Get the top p(2) fractional bits of the sequence for the p(2) field % “error” generator. % Limit the p(2) field values to 0 -> p(2) −1 frprt = normseq − floor(normseq); errseq = round((p(2)−1)*frprt); % % Get the top p(2)+1 to p(2)+p(3) fractional bits of the sequence for % the p(3) field “error” generator. % Limit the p(3) field values to 0 -> p(3) −1 shf = 2{circumflex over ( )}(ceil(log2(p(2)))); frprt = shf*normseq − floor(shf*normseq); errseq1 = round((p(3)−1)*frprt); % %Begin conversion into residue space % % Initialize the residue values resarr = zeros(3,intct); % Initialize the output array, outarr = zeros(1,intct); % % Calculate the residues for ind = 1;intct  for ind1 = 1:3   resarr(ind1,ind) = mod(seq(ind),p(ind1));  end end % Generate the errors for encryption % % In this implementation, the last bit (LSB) is inverted, the % next 3 LSBs are added to a random bit sequence in GF(p(2)), % and the 5 MSBs are added to another random bit sequence in GF(p(3)), for ind = 1:intct  % Convert the p(1) RNS rep, to binary and invert it. This can only  % be done because p(1) = 2 and is used to force a change although it is  % not necessary,  bv = dec2bin(resarr(1,ind), 1);  if bv(1) == ‘1’   bv(1) = ‘0’;  else   bv(1) = ‘1’;  end  %  % Convert the first residue back to binary,  resarr(1,ind) = bin2dec(bv);  %  % Add the error to residue for p(2).  resarr(2,ind) = mod(errseq(ind)+resarr(2,ind),p(2));  %  % Add the error for residue p(3).  resarr(3,ind) = mod(errseq1(ind)+resarr(3,ind),p(3)); % % Convert back to weighted using the CRT %  outarr(ind) = mod(resarr(1,ind)*b(1)*mop(1) + ...   resarr(2,ind)*b(2)*mop(2) + resarr(3,ind)*b(3)*mop(3),capm); end % % Convert the output to characters for output outarre = uint8(outarr); eout = char(outarre); eout % % Now decript % % Convert the encrypted input to a nurmerical array and calcuate its length, seq = uint8(eout); intct = length(seq); % % Generate the same error sequence as generated for encryption randn(‘state’,key); normseqd = randn(1,intct); % %Begin conversion into residue space % % Initialize the residue array. resarr = zeros(3,intct); % Initialize the output array. outarr = zeros(1,intct); % % Convert to residues for ind = 1:intct  for ind1 = 1:3   resarr(ind1,ind) = mod(seq(ind),p(ind1));  end end % % Convert each floating point random number to an 8 bit representation % % % Convert each floating point random number to a log2(p(2)) bit % and a log2(p(3) bit representation % % Positives only normseq = abs(normseq); % % Get the top p(2) fractional bits of the sequence for the p(2) field % “error” generator, % Limit the p(2) field values to 0 -> p(2) −1 frprt = normseq − floor(normseq); errseq = round(p(2)−1)*frprt); % % Get the top p(2)+1 to p(2)+p(3) fractional bits of the sequence for % the p(3) field “error” generator. % Limit the p(3) field values to 0 -> p(3) −1 shf = 2{circumflex over ( )}(ceil(log2(p(2)))); frprt = shf*normseq − floor(shf*normseq); errseq1 = round((p(3)−1)*frprt); % % Generate the errors for encryption % % In this implementation, the last bit (LSB) is inverted, the % next 3 LSBs are added to a random bit sequence in GF(p(2)), % and the 5 MSBs are added to another random bit sequence in GF(p(3)). for ind = 1:intct  % Convert the p(1) RNS rep. to binary and invert it. This can only  % be done because p(1) = 2 and is used to force a change although it is  % not necessary,  bv = dec2bin(resarr(1,ind), 1);  if bv(1) == ‘1’   bv(1) = ‘0’;  else   bv(1) = ‘1’;  end  %  % Convert the first residue back to binary,  resarr(1,ind) = bin2dec(bv);  %  % Subtract the error from residue for p(2) (inverse of the encryption  % function used.  resarr(2,ind) = mod(−errseq(ind)+resarr(2,ind),p(2));  %  % Subtract the error from residue for p(2) (inverse of the encryption  % function used.  resarr(3,ind) = mod(−errseq1(ind)+resarr(3,ind),p(3)); % % Convert back to weighted using the CRT %  outarr(ind) = mod(resarr(1,ind)*b(1)*mop(1) + ...   resarr(2,ind)*b(2)*mop(2) +resarr(3,ind)*b(3)*mop(3),capm); end % % Convert the decrypted sequence to characters for output. outarr = uint8(outarr); eout = char(outarr); % Display the decrypted sequence. eout

FIG. 3 is a graph showing an autocorrelation of the input sequence. FIG. 4 is a graph showing an autocorrelation of the encrypted sequence. The cross correlation resembles that of two (2) independent uniformly distributed random sequences, thus illustrating the independence of the two (2) statistics.

All of the apparatus, methods and algorithms disclosed and claimed herein can be made and executed without undue experimentation in light of the present disclosure. While the invention has been described in terms of preferred embodiments, it will be apparent to those of skill in the art that variations may be applied to the apparatus, methods and sequence of steps of the method without departing from the concept, spirit and scope of the invention. More specifically, it will be apparent that certain components may be added to, combined with, or substituted for the components described herein while the same or similar results would be achieved. All such similar substitutes and modifications apparent to those skilled int he art are deemed to be within the spirit, scope and concept of the invention as defined. 

1. Method for encrypting data, comprising: formatting data represented in a weighted number system into a plurality of data blocks of N bits in length; converting said data in said plurality of data blocks into a residue number system representation: generating a first error generating sequence; and inducing errors in said data blocks after said converting step by using said first error generating sequence to arithmetically operate on at least one residue using Galois arithmetic.
 2. The method according to claim 1, wherein said step of inducing errors comprises introducing known errors in at least one of a plurality of residue values generated in said residue number system.
 3. The method according to claim 2, wherein said step of inducing errors further comprises performing an arithmetic operation on said residue values generated in said residue number system based on said first error generating sequence.
 4. The method according to claim 1, further comprising transforming said data blocks to a weighted number system after inducing said errors.
 5. the method according to claim 1, further comprising generating said first error generating sequence in a weighted number system.
 6. The method according to claim 1, further comprising generating said first error generating sequence in said residue number system.
 7. The method according to claim 1, wherein said inducing step further comprises inducing errors in only selected residues.
 8. The method according to claim 7, wherein said selected residues are varied over time.
 9. The method according to claim 1, further comprising formatting said data after said inducing step into a weighted form to be stored or transmitted.
 10. The method according to claim 1, further comprising: receiving said data blocks after inducing said errors; generating a second error generating sequence synchronized with and identical to said first error generating sequence; and correcting said errors in said data blocks using an operation which is an arithmetic inverse of a process used in said inducing errors step.
 11. The method according to claim 10, further comprising converting said data blocks from said residue number system to said weighted number system after said correcting step.
 12. The method according to claim 1, wherein said weighted number system is selected from the group consisting of a decimal, a binary, an octal and a hexadecimal number system.
 13. The method according to claim 1, wherein said first error generating sequence is at least one of a simple linear sequence, a pseudo-random number sequence, a chaotic sequence, and a complex non-linear sequence.
 14. Method for encrypting data, comprising: formatting data represented in a weighted number system into a plurality of data blocks of N bits in length; converting said data in said plurality of data blocks into a residue number system representation using modulo operations; generating data defining a first error generating sequence; inducing errors in said data blocks after said converting step using said first error generating sequence to arithmetically operate on at least one residue using Galois arithmetic; and transforming said data blocks to a weighted number system after inducing said errors.
 15. The method according to claim 14, further comprising: receiving said data blocks after said transforming step; performing an inverse transforming step to convert said data blocks from said weighted number system to a residue number system; generating a second error generating sequence synchronized with and identical to said first error generating sequence; and correcting said errors in said data blocks after said inverse transforming step using an operation which is an arithmetic inverse of a process used in said inducing errors step.
 16. The method according to claim 15, further comprising converting said data blocks from said residue number system to said weighted number system said correcting step.
 17. Method for encrypting data, comprising: formatting data represented in a weighted number system into a plurality of data blocks of N bits in length; converting said data in said plurality of data blocks into a residue number system representation using modulo operations; generating data defining a first error generating sequence; inducing errors in said data blocks after said converting step by using said first error generating sequence to introduce known errors in at least one of a plurality of residue values generated in said residue number system; and transforming said data blocks to a weighted number system after inducing said errors. 